package com.program.facesigninsystem.service;

import com.program.facesigninsystem.entity.Organization;
import net.sf.json.JSONObject;

import java.util.List;

public interface IOrganizationService {
    Boolean addNewOrganization(
            String oid,
            String oname,
            String email,
            String createtime,
            String ocode,
            String phone,
            String uid);
    Organization selectbyocode(String ocode);

    void deletebyoid(String oid);

    Boolean applygroup(String oid,String sid,String createtime);

    Boolean rejectapply(String soid);

    Boolean passapply(String soid);

    Boolean untiebind(String soid);

    List<JSONObject> selectapplyhistory(String oid, int pageSize, int pageNum);

    List<Organization> selectorgbyuid(String uid,int pageSize,int pageNum);
    List<JSONObject> selectbind(String oid, int pageSize, int pageNum);
    public JSONObject buildFullOrgTree(String rootOid);
    List<JSONObject> selectsup(String oid, int pageSize, int pageNum);
    List<JSONObject> selectbdhistory(String oid, int pageSize, int pageNum);
    Boolean updatebyoid(String oid, String oname, String email, String phone);
    List<Organization> selectorgbyoname(String oname,String uid,int pageSize,int pageNum);

    List<JSONObject> selectbindbyoname(String oid,String oname,int pageSize, int pageNum);

    Boolean selectwethersee(String oid,String sid);

    Boolean updatewhethersee(String oid,String sid,String whethersee);

    List<String> selectjunior(String oid);

    List<String> selectccidfortj(String oid,String year,String semester,String startweek,String endweek, String section);
}
